interface Person{
  name: string;
  age: number;
  gender: string;

  introduce(): void;
}

class Student implements Person{
  name: string;
  age: number;
  gender: string;
  
  constructor(name: string, age: number, gender: string){
    this.name = name;
    this.age = age;
    this.gender = gender;
  }

  introduce(): void{
    console.log('I am Student')
  };

}

class Teacher implements Teacher{
  name: string;
  age: number;
  gender: string;

  constructor(name: string, age: number, gender: string){
    this.name = name;
    this.age = age;
    this.gender = gender;
  }

  introduce(): void{
    console.log('I am Teacher')
  };

}

let s = new Student('zhagnsan', 18, 'DaYi');
let t = new Teacher('lisi', 18, 'DaEr');

s.introduce()
t.introduce()
